Removed while and until loops from year.rb