My attempt at learning Ruby