defined functions in the ViewController.h file