Improved create class action.
Fixed bug in extract method.