Add apply method sample