Usage of this in object and function object