edited for Coursera PrA No. 2