Learning ruby by making a slot machine