easier way to build prototype classes