Lab6 efficiency calculation modified