replace_type exercise done (i guess)