Using turbo prolog - Robinson, Phillip R. (Osborne McGraw Hill, 1987)