starting final code