Polish code using point free style