homework 3 ready! tabulation fix