make customer class compatible with ints