Sample Code: SimpleApplication.m