Some of the code I've written while learning Ruby.