Added quick version of problem # 6 here and problem # 7