committing my homework after lesson 03

@slead remove the brackets and rename function to report_error