week3: minor code style fixes