Updating example with correct method name