went through solving classify_problem3 with the new memory structure