this is my first attempt at java