Initial code for ex1_multi.