function [v2,cur, req] = voltage_divider(r1,r2,vs)
req = r1+r2;  
cur = vs/req;
v2 = vs*r2/req;
end