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