assignment part 1 & 3