for tutorial ch 3