made sure that no division
with zero is made in printStatistics
By checking if D1 and D2 are both empty.