Finished Lab2 exercise 16