new way to define class option