Fix code example formatting in best-practices article

code example needs 4 spaces as prefix