Took a crack at Problem 1
Attempt at Problem 2