First simple implementation. To be continued...