problem f
assigment 2 complete