Is there a simple way to do the above titled.