Add option to explicitly set the base class

There are some problems creating a pull request from issue using hub. It returns 500 error, so I've decided to create a new pull request.