Let $S= \{ 1,2,\ldots,n \}$. and $V$ be the set of all functions $f: S \to \mathbb{R}$. $V$ is a vector space defined by: $$(f+ g)(x) = f(x) + g(x) \text{ and } (cf)(x)=cf(x). $$ Find a basis for $V$ and $\dim V$.
I'm not sure how to answer this question, it seems different than how I learned solving a basis, which was through a set of vectors, anyone know how I can tackle this?