The same as before check the type and than inside the if block check the ```invest``` variable