moved some files, and added the examples for methods with control flow