Update ch31ex - Passing variables