Implement basic map class