adding lecures 7,8 and examples