Solution for investigation task