Simple constructor with prototype