Implement a basic RAM class