added another method to p016.py