5th challenge using ruby