Fix main() method to be main(String[] args) - don't understand how this worked before but it wouldn't run in IntelliJ Idea