refactored code to include helper method fill_station