Adding solution for p012