run and output added for the example