implmeneted route and save function for assignemnts