write ex4.5