writing config parser class