added and finalised extent class