Implementation of a single linked list, using OOP approach