Refactor signal sampling method to Node superclass and remove for loop