Skeleton code for part 2... missing ask kb
Example debug output
One possible Knowledge Base