Created factories for Model and View. Created Role Based Access Control classes and enhanced code