Source code for iPad application