bring in a base class and DRY it up.
Merge pull request #3 from mfine/base-module

Bring in a base class and DRY it up.