finish ch7 with compile error