added update class and update code, finalized character count implementation