added factory and view classes
Connected UserView and Factory
created factory class