improved readme example code