complete 1.3.2 code