Use of prototype to create common properties