Made use of std file io