Code for MSc. Just for backup and testing not production