added example with figures