formatting and make class final, constructor private