Threaded toy producer / consumer with abstract classes