wrote code to compute reporters reputation