Use enum rather than int