adapting the older class