Adding basic code fragments that might be useful later