Replace Object with Foo and apply some style changes