Elementary example of energy and momentum of an extended physical system in special relativity