Writting a solution for #2. Custom querys.