useful basic c++ classes