finished Lab 6.2