version 2 created: with all the parameters through input files