wrote a few tests. got the app working