solutions to lab6.2