Changed example to be functional!