Various bits of code, while I learn the language