two ruby solutions added