Added initial attempt at pagination classes in Scala