just some java code I'm playing with