updated code style lab 5