Comparative analysis of Prolog, Lisp and Ruby