update duck code sample :dog: