A more elegant way to prototype