ex5: implemented calc of cross section