Typing

Changed to using `define:` instead of `:` for type annotation in example code