solved #assignment1