moved Component to entity package