for flight mechanics assignment 3 and 4