Assignment1 accomplished