OPTIONAL 8 Resource leak: 'i' is never closed