added ruby rectangle class solution