Refactoring actions. Now the attrbs are define in the class, not derived from instantation