Different ways of solving