started playing with the poorly written lab10 code