Reworking tutorial.cpp to integrate with JSON file reader.