Implement node class + some methods