Pattern example for different object constructrors