Added more to aima library. Constructed 3 queries. Still need to refactor.