Completes problem 3
Fixes the iteration count on problem 1
Solves problem 4