Writing your own features