addClass and abstraction