fixed the code sample snippet's formatting