Almost done with client and server side of first five functions