created repositories and linked em with their models