Lab 5 EC class creation

no idea how to do the math, must consult