fixing typo in main code sample