sample code for perfume project