basic candy class, made candy typing more transparent