#7 implemented a method to query using Criteria