Define methods and struts