assignment#2 finally done