Corrected variable initilization to zero, added product calculation