ex-4.8 code added, code format re-arranged