Pseudo-code, variables and what i have to do