adding the possibility to construct from the command line