finish problem_seven with tests