problem 7 code with passing tests