practices more code from lab 3