The first few went will for me but when I started to get to the def ratio function everything started getting confusing. When I was stuck I did try to use my notes from CsE 115 which helped me out a little.