Really adding smarty.txt
Use enumerate() instead of range(len())