Completed samples for data structures and added code for file operations