[WIP][issue #89] implementation modified to satisfy ruby code conventions