taking in multiple files and calculating them works