Solved HW 5