throw exception when can't get penultimate element
failing P7