added toString func and implem