asignment 1 - part 1 & part 2