- added clear function to Component and List