Update best-practices.md

Fixed formatting issue with code sample