An extensible program-code-template for creating objects