finished all assignment functions