fp - exercise session 4