Code for SLAE assignments