adding solution for 8 b