Wrote functions for App class.

Also added loop function to sequentially call the three
main functions within the class.