Experimenting with own density implementation