created alert to print out results

completed code