Refactored the calculator code for clarity. Added Jacoco line to prvent issues with the bigger Material class.