Converted solution to 2013