From a point on the group at a distance 2 meters from the foot of a vertical wall , a ball is thrown at an angle $45^{\circ}$ which just clear the top of the wall and afterwards strikes the ground at a distance 4 m on the other side. The height of the wall is