creating ability class