more code examles for ch1