class assignment for OO.