Some example code when learning ruby