made parse() a boolean, as assignment asked for.