Finished generate_equation() function and added get_problems() function.