various code from java courses