Started to write check_results function.