As part of coursera assignment