adding binding bevahiour to class