working code through exercise goal