Refactor method. Split example files into 3 parts.