Refactored the main.rb file by creating methods in shelter.rb to be called by main.rb.