Mandatory assignment 3 for real-time systems