first commit. crap code, but now it's in github, so I can play at home instead of just at lunchtimes