Assignment 2: Generics in RUST Solution