implement the contest management