second try assignment 3