wrote ruby speed quiz explanation