Input Condition Composite Function

Added Functionality to Composite class
Not Tested Fully. May be buggy!