added mod5 soln