lab3 initialization