Add lastbutone function and answered all exercises.