implements solution plot