Changed instance variables to properties in pig