added example code for linux