Finish basic ruby implementation