Slightly modified to enhance readability