Problem 1

Jen’s mostly-complete problem 1, using tuples and lots of manual
calculations.