adding prolog and scala