adding new instance variables and prototype functions