Implementation of Inbox

Implementation of Inbox, not perfect but basic funtions are ready