Theoretical and experimental results and code samples