start writing some tests, need to setup karma though