part of the homework on coursera