Changing stems direction without affecting rests

Here is how to change the stems direction without affecting rests.