class and opt for data