Refactored to use object literal instead of 'new'