- added test code (in comments)