added main function to do what we want