switch from printf to std::cout
switch to new initializer