added example in  main