Adding attributes to objects