first attempt at java