Constructor patterns with prototype and some simple examples