added Function interface (for real this time) and tested transform for simple case