Method define in object literal