Made type modifications and removed cin.ignore