added public print and rotate_c and rotate_cc