Collatz example

Added example file using shorthands in a function that displays the
collatz numbers