added partitioning of energy to Fragment class