Modified spec as per Exccercise 1 Chapter 5