Code we hacked for damonster hackathon