Sample code for various introductory concepts of artificial intelligence