generate class structure with method and activity headers