class to add components