moved template.rb