Creating main models