first attempt after the jasmine tests, was able to complete it quickly with the tests as a guide