implement handle function in Barricade class.