Implemented parser exercise 5