explanation of code in begun.
started describing events