Basically, the Java QuickStart with some minor modifications