Added a new example and fixed main