lab6 full from lab5