Shortens average functions. Finalizes 01.rb.