completed the assigment2