Added evalution of f after creating solution. Fixed pa rate.