Problem 31 done. Was a fun problem!