some simple codes collection