Improve birthday.rb to make it more modular