Code with errors to be fixed