add file for pavols approach
clean up code a bit
add redis file to master