Added example written as a test