of course , matilda went at once to the king , but while she was on her way the cockatoucan happened to laugh , and when she reached the king he was in no condition for ordering dinner , for he had turned into a villa residence , replete with every modern improvement .