add answer to exercie 6