added pre code explanation and image