Modification of the sample.py.