Done p490
P193 not working yet. Have to create heuristic.