Complete exercise 4.11, transform frames to lists of bindings