defined cons equality. implemented cons in parser