Some coding snipets for testing