re-wrote 3d multiplication table program