Solution with 3 columns