Set up dependancies, create models