Rewrite part 5