used String.format() and out.printf() to align output nicely