Refactored Function property on chord  and ChordFunction to be more generic