[WIP][issue #83] implementation modified to satisfy ruby conventions