Third assigment for the PP class - implementation in clips programming language