updated ex01 formatting/compatibility w C++98