added call-with-socket procedure
replace lambda with λ per the style of the rest of the code