constructor takes const values for initialization