Tutorial in Java (many instaces)