ruby prototype work in progress