Add extends snippet
Alter lay snippet to use extends