Added both the example code from the papers and added solutuion listner