Created assignment3.1.js
created object constructor