add power source method to traintastic.rb