ruby rectangle class: my solution