added total variable so function can calculate the equation
added workspace file to idea folder