Fixed errors in logic for my first pipeline example.