Divided main.rs into smaller files.