Working Example with output