found three functions and started commenting