Completed solution to 87