added example source code