First working app. Still a lot of bugs though.