edited and added mod7 part1