exercise 5, added new input and review system