first revision of my test app from class