initial upload code. small java brainers.