refactor and fix errors in station.rb