Modified the provided example