Changed constructor and made alle dynamic