Added Model class and worked on view controller class