Made example into module
Putting examples into little function modules..