decorator sample code