Completed exercise 1 for the simple parser