making fields protected in order to use in the extending class