some prolog scripts written during le bsc days