modified answer 4