Completed solution for 97