ruby classes structure