Set class attributes once