fixed NaN issue in LL computation for lesson 17