a working version! stephanie's comments probably to follow.