Modify models/contest.rb

use methods in show.html.erb