added the missing part from the last lecture