final code session4