Edited the main method, because there were some typos.