add lab6 source code