working query board soln in rb