Added duck types to documentation