Use dir to also include attributes from the class