refactor
added example