Add attributes and methods