Updated example and added output