chap4: main features almost done. tags missing.