Solved 11, optimized 10, minor edits elsewhere