prototype by using constructors