The right way to specify type

I just wanted to show the right way to specify the types.