The PHOBOS experiment at RHIC and AGS