updated to use railscast_256