changing adding classes implementation
Implemented adding classes by inserting dummy row. Needs testing