code snippets and exercises from the Code Academy Ruby tutorial