adding lec 3 & 4