Added two methods using Python