Implemented basic functionality of creating text fields.