open the existing class and adding a amethod