Working Version with Integers Only