constructor cleanup on the examples