Boeing profits on demand for jets and a NASA contract