solution template
relation between models and user
connect contests and problems: many to many