added complete example