write a complete example for usage