Completed Problem #1;
Completed Problem #2;