Backend

Almost finished it