Problem 6 solved. New class defined.