dyanamic class