Variable class now provides access to the calculation method, fixes #49.