Fixed the error component of cost
Trying to build a diversity cost component
WIP