An implementation of a cloth simulation using springs