Added get and set methods in View class

They're used to get and store data for access in views.