main code
added example