Wrote (most) of the Attempt class