My algorithm practise