learn and test some codes that about AI