codes i've written as I learn ruby