Functional Class code added