Fabric sample code