moved models to lib folder