trying to do lab6, ex3