Main function

added main function