A code sample Legrand