Refactored using object literal notation