add part 3 solution to assignment 3