Added spec helper function. Executed all exercised in section 5.6