Fixing bug: extraClass needs to replace classes. Also, it may be an array of classes