wrote joysmooth class