Problem #6 complete.
Merged problem #6