Java threading example to be used in preparation for Lab 05