added example 1 and working on example 2