Smart rocket