Adding CompositeFunction class
Adding unit test for CompositeFunction