hw4part 1 with style def