Made subtractor class and thread.