My ruby training code