Added subroutine example

added a subroutine (sub) example