Created 3 functions

Added a more complex example