Added example on how to avoid Type Erasure
Minor change in class naming