trying to make my first API using java