Completed problem 1 of assignment 11