Text this: Modeling derivatives in C++