Principles of intelligent systems, planning part of assignment1.