making an object using prototype