Added Constructors to the java class