Simplified by making the class variables public and setting directly in
main instead of through setX functions.