Log instead of print statements and return dynamic version instead of hardcoded version
First published version of the the loss-calculator