adding basic lecture code