plate method sample code