added magic method to create fields

Signed-off-by: Blessing Osakue <iyoworks@gmail.com>