Rewrite part 4