changed return type of main to int, returns 0