Can you please improve this code? Can you please optimize it? Can you make it recursive? This is me to ChatGPT3. All day. It's so powerful. Writes codes better than us. Knows what works best. Knows everything. Blown away.