Defining some basic structures.