Version 1.0.2 (Addition of main function)