solution ex 1