Added main method implementation