Add attributes and methods to class