AddComponentMenu problems

I’ve a component class that I wish to attach to the component menu. I believe the code should be something like …

using UnityEngine;
using System.Collections;

[AddComponentMenu ("Miscellaneous/Hardpoint")]    
public class HardpointComponent : Component 
{
   ...
}

But alas it doesn’t appear to work - even when restarting unity, so I’m wondering what I’m missing - should it be in a particular location ?

You have to inherit from MonoBehaviour, not Component

Ah that seems to have done it, thanks