Doctor Planning resolved with #Prolog