Added code snippet, and appended 'S O' principles