A ball is moving with a speed of 4 m/s towards a heavy wall. The wall is also moving towards the ball with velocity of 1 m/s. If the coefficient of restitution is 0.5, find the velocity of the ball immediately after the collision. (Assume that the wall maintains the same speed even after the collision.)