Added this. to all methods formed from constructor in order to access class attributes