ex-4.7 code added