Solution file of lecture 2