Solution to Problem7