Updated examples to reflect new type hint syntax.