defining Object Method internally