pretty much finished part 1 of lab4