finished Lab1.8