SPbSU homework