some homework for Coursera