Most of Problem 7 (code abbey) is done