using object literal approach