Creating functions is the preferred method for developing reusable code.