Updated problem # 3 for formatting