Use a constructor instead of reflection