simplified class query