No need for mapping in ex2.
Future-proof print calls in ex2.
Removed mapping from ex2_reg.
Print function in ex2_reg.