Updated code lab 1.