Alex's code, last test spiritually passing.