q3 and q4 done
added init on assignment_2