How to write the perfect function