even I too sometimes doing my assignment I realize my whole code is wrong & I have to redo again I hate it...but I really like listening lofi music while studying,I suggested my room mates and they have more concentration on studying nowadays, I would also suggest you to listen...its in youtube