finished working version
added example