My first attempt at creating a kernel