Added utility method to add a class

Fixed issue #6