added example code2