added example codes