adds file for 3rd problem
first working answer for problem 3