Solutions by Shawn | Ruby