How do I replace a constructor?