Tidied up matmul and incorporated a let to ensure ive got everything so far