Add function class and unit test
Make superclass Function superclass of polynomial