Added source code for v3