Updates Problem #1
Solves Problem #6