I've used both of those schemes, and there are other variants. I just chose the absolute simplest.