added classes to represent Functions
Corresponding tests have also been added