Ruby Core course homework