v1.0 of rotate.cpp -- compiiles, generates output