I\'m trying to make it possible to initiate an instance of the class Function like this.
Function chain = new CosineFunction(new SquareRootFunction(new SineFuncti