Solution to lab7