Added script for ideal solver for p3