finished 3.1.4: passing ptr by ref and value.