exercise 1a solved. Multi threaded warehouse using a java monitor.