week4 code and slides