added example code for env2