Eliot Nelson's homework for ASTR 2600