Add functional code sample