changed number constant to enum logic in class GitData