initial effort for issue #26.working, but full of bug