For the first place in the shlef you have 5 possibilities to choose, for the second place you have 4 possibilities, for the third you have three possibilities and so on. This means that we can find the number of ways to arrange the books with a factorial, that is:
Therefore, there are 120 ways to arrange your books in the shelf.