Derivative

Issue #4 adds support for taking derivatives.