solve parts 1 - 3 of assignment 5