Added main file and test.