update Ex4 and Ex5