first implementation of inbox