set constructor of a class