changing to prolog parser.pl