add solution for 8 ex