You can do it in the same class.

and as for the InterruptedException, you can just throw it when you start your "main" method.

Thread.sleep(# of milliseconds); (just in case you want to change...