add “construct” method for passing an array of arguments when creating new instance from constructor