begin solution for more complex inquiries