Defining states and adding