add lab3 source code