STATOD slides, Attitude functions, HW4