initial test and solution for problem eight