create class instances by specifying the attribute names