code and cascade classifier