fixed ch1_7
finished ch4