Updated Java-like thread and Runnable: