change calc to prototype with basic functioning