Added sample Main code.