The current code I developed to compare the examples programs