fixed code sample