Did exercises in lecture 4.