allocate example