int's -> float's, and initialized the lists as [0] instead of [], same functionality I believe, too lazy to test though.