Updating Step by step script for state implmementation