cleaned up example usage code