Implemented Problem7