Created base models and controllers