Wrote some skeleton code. Hacking away at TODO