Using utility function to create elements