added main() function