lab 5 skeleton and MainActivity implementation