assignment-2 my solution
assignment-2 add factory for runnable creation