added lab6 stuff