Components function

Add or remove components in the problem