A simple class to make building widgets easy