My practice code from examples in http://knuth.luther.edu/~bmiller/Java4Python/index.html