Simplified object creation code in the examples