Algorithms written in Objective C and UI play