Completed Lab2 exercise