Re-factored the IDCard class to make it immutable