Added main() to top of file