Moved assert function. prepare for problem 08.