added Test case and encapsulation