Added first parts of code