Added example and unit test