var Gabriel = Human.extend({ first_name: 'Gabriel', last_name: 'Hernandez' }); Gabriel.prototype.occupation = ( function ( rank ){ return { position : rank + ' Software Engineer' }; })( 'Sr.' );