Completed solution for 99