copied lab4 contents into our app