added example
adapted