Added code lab 6