added sample for composing functions