Code for CSCI-494 iOS development