Practice code for dietcake (registration and pagination)