first try of fanIn fanOut