chapter 2.2 Rule Based and Learning Based