6.07 running code, but using a lot of lists instead of arrays