Restructure code samples