Updated class 1 with a Test method.