Chapter5 two versions revolving around use of Int