Assigment 3 problem 3