efficiency calculation added to lab6