create models and controller