cleaned up algebra notes