working partial soln in rb