adds tests and impl for the introductory jasmine exercise