my solution for Course Project 1
add figures