to Fig 7.3 with code clean