checking the solution implemented