Added solution prining functionality