added library for contests
updated template