Creating Elements

Fixed the way elements are created