Initial legend implementation