Problem 1

Getting close to resolving math issues.