Added constructor method for base. Put build method in Component superclass.