Added code for constructors for ematrix