Add class implementations.

There are still some missing, but these should be enough to get me
started on the real project.