Finished the base functionality of the Component class