fixed errors on exercise 1 using code validator