lecture 4 and added some sample coe