Add K-Means boilerplate