Add extent moudle for getting max and min