Implementation of two constructors