Code for learning Ruby