Updated Entity: it now has an addComponent method