codes to coursera assesment