Both are spot on examples on what the cerebellum does. If I may, a third example/analogy that comes to mind is cache memory or L2ARC drives, at least that’s how I have it stored in my mind (pun intended) :-)
"The brain is like a computer that"-style analogies are rarely fitting, or so vague as to being almost useless. My fridge is an L2 cache for food I want to eat soon.
It's an analogy for a reason. It bothers me when people combat analogies so incredibly hard. Of course, it is not really fitting or the same thing - it's an analogy.
It would be a useful analogy for someone intricately familiar with computers but who was only sort of vaguely familiar with the concept of eating, has thought about houses only on occasion, and knows about refrigerators only insofar as they’re a food-related thing inside a house.