Move code snippets into separate cpp file.