solution to problem 9 added
'summarise' decorator applied