Removed error from demo program. Added.equals where appropriate