add solution from SO
add readme