working on exercise 1.2, compiles but doesn't work (yet)